/**
 * 
 */
package top.lcpsky.flashcards.common;

import lombok.Data;

/**
 * @ClassName: BizException
 * @Description:TODO(这里用一句话描述这个类的作用)
 * @author: lcp
 * @date: 2020年2月22日 上午9:58:15
 * 
 * @Copyright: 2020 www.ankept.com Inc. All rights reserved.
 */

@Data
public class BizException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private String msg;
	private Integer code;

	public BizException(Integer code, String msg) {
		super(msg);
		this.code = code;
		this.msg = msg;
	}

	public BizException(String msg) {
		super(msg);
		this.msg = msg;
	}

	public BizException(String msg, Throwable e) {
		super(msg, e);
		this.msg = msg;
	}

	public BizException(String msg, int code) {
		super(msg);
		this.msg = msg;
		this.code = code;
	}

	public BizException(String msg, int code, Throwable e) {
		super(msg, e);
		this.msg = msg;
		this.code = code;
	}

}
